@import '~styles/mixin.scss';
// element卡片样式
.el-card {
  width: 100%;
  height: 100%;
  .el-card__body {
    height: 100%;
    padding: 0;
  }
}
@media screen and (min-width: 1280px) {
  .el-card {
    width: 1200px;
    margin: 0 auto;
  }
}
// element确认消息提示样式
.el-message-box {
  .el-message-box__btns {
    display: flex;
    flex-direction: row-reverse;
    .el-button {
      margin-left: 10px;
    }
  }
}
// element对话框样式
.el-dialog {
  .el-dialog__header {
    border-bottom: 1px solid #ccc;
    .el-dialog__title {
      font-size: 16px;
    }
  }
  .el-dialog__body {
    padding: 10px 20px;
    .el-form-item__label {
      color: #a5a5a5;
      font-size: 14px;
    }
    .el-form-item__error {
      padding: 0;
    }
    .el-form-item {
      height: 30px;
    }
    .el-input,
    .el-select {
      width: 100%;
    }
  }
  .el-dialog__footer {
    border-top: 1px solid #ccc;
    text-align: center;
  }
}

// 单选按钮样式
.el-radio {
  .el-radio__input.is-checked .el-radio__inner {
    background-color: #13ce66;
    border-color: #13ce66;
  }
  .el-radio__input.is-checked + .el-radio__label {
    color: #13ce66;
  }
}
// tab切换标签样式
.subject-list .el-tabs__nav {
  float: right;
  padding-right: 20px;
}
.el-tabs .el-tabs {
  height: 100%;
  display: flex;
  flex-direction: column;
  .el-tabs__header {
    margin: 0;
    padding: 10px 10px 0;
    background: #f7f7f7;
    border-bottom: 1px solid #ccc;
    .el-tabs__nav {
      border: none;
      .el-tabs__item {
        color: #8b8b8b;
        font-weight: bold;
        letter-spacing: 2px;
        width: 115px;
        text-align: center;
        box-sizing: border-box;
        background: #fff;
        margin: 0 5px;
        border: 1px solid #ccc;
      }
      .is-active {
        border-bottom-color: #fff;
        border-top: #3588e4 solid 3px;
        overflow: hidden;
        color: #3588e4;
        margin-bottom: -15px;
        line-height: 34px;
        color: #3588e4;
      }
    }
  }
  .el-tabs__content {
    flex: 1;
    .el-tab-pane {
      height: 100%;
    }
  }
}

//login  el-input
.login-input .el-input__inner {
  -webkit-appearance: none;
  background-color: #fff;
  border-radius: 0px;
  border: 1px solid #dcdfe6;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #606266;
  box-shadow: #3d79e2 3px 5px 5px;
  display: inline-block;
  font-size: inherit;
  height: 35px;
  line-height: 1;
  outline: 0;
  padding: 0 15px;
  -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  width: 100%;
}

// el-input样式
.el-input {
  // 文本输入框样式
  &.el-input-text-style {
    .el-input__inner[type='text'],
    .el-input__inner[type='password'] {
      background-color: #f0f7ff;
      height: 30px;
    }
  } // 文本搜索框样式
  &.el-input-search-style {
    width: 140px;
    height: 30px;
    margin-right: 10px;
    .el-input__inner[type='text'] {
      height: 30px;
    }
    .el-input__suffix {
      display: flex;
      align-items: center;
      cursor: pointer;
    }
  }
}
// el-button样式
.el-button--success {
  color: #fff;
  background-color: #22c13c;
  border-color: #22c13c;
}
.el-button {
  height: 30px;
  border-radius: 1;
  line-height: 30px;
  padding: 0px 25px;
  &.el-button-twobig-style {
    padding: 0px 34px;
  }
}
// 多行文本输入框样式
.el-textarea {
  &.el-input-text-style {
    .el-textarea__inner {
      background-color: #f0f7ff;
    }
  }
}
// 下拉选择框样式
.el-select {
  &.el-input-text-style {
    .el-input__inner {
      height: 30px;
    }
    .el-icon-arrow-up:before {
      content: '\E60C';
      color: #555;
    }
  }
}
// 下拉选择框箭头
.el-select-dropdown.el-popper {
  .popper__arrow {
    left: 90% !important;
  }
}
// 时间选择器样式
.el-date-editor {
  &.el-date-style {
    .el-input__inner {
      height: 30px;
    }
  }
}
// 表单样式
.el-form {
  &.form-style {
    .el-form-item {
      height: 30px;
    }
  }
}

//表格的公共样式
.el-table__body {
  width: 100%;
}
.el-table th,
.el-table tr {
  background-color: #fff;
}
.el-table th > .cell {
  text-align: center;
  line-height: 35px;
  border-right: #73b6ff solid 1px;
  width:98.5%;
}
.el-table {
  height: 100%;
  .el-table__header {
    width: 99%;
    border: #73b6ff solid 1px;
    .el-table-column--selection {
      .cell {
        .el-checkbox {
          visibility: hidden;
        }
        &:before {
          content: '选择';
          width: 50px;
          height: 50px;
          color: #2e69b0;
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
        }
      }
    }
  }
  .el-table__header-wrapper {
    thead{
      color: #2e69b0;
      th {
        height: 30px;
        padding: 0;
        background-color: #d5e9ff;
      }
    }
  }
  .el-table__body-wrapper {
    overflow-y: auto;
    @include scrollBar;
    height: 90%;
  }
}
.el-table--border,
.el-table--group {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.el-table td,
.el-table th {
  padding: 10px 0;
  min-width: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-overflow: ellipsis;
  vertical-align: middle;
  position: relative;
  text-align: center;
}
.el-table--border td {
  border-right: 1px solid #ccc;
}
.el-table td {
  border-bottom: 1px solid #ccc;
}

// 树形样式
.el-tree--highlight-current 
.el-tree-node.is-current
.el-tree-node__content {
     background-color:#3588e4;
     color: #fff;
}
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  background-color: #3588e4;
  color: #fff;
}

//轮播样式修改
.el-carousel__arrow {
    border: none;
    outline: 0;
    padding: 0;
    margin: 0;
    height: 36px;
    width: 36px;
    cursor: pointer;
    -webkit-transition: .3s;
    transition: .3s;
    border-radius: 50%;
    /* background-color: rgba(31,45,61,.11); */
    color: #8d1c1c;
    position: absolute;
    top: 50%;
    z-index: 10;
    -webkit-transform: translateY(-50%);
    /* transform: translateY(-50%); */
    text-align: center;
    font-size: 12px;
}

